package com.ujson.chat.client.dto;

import com.ujson.chat.client.builder.ChatMessageBuilder;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ChatInputDto {
    private String to;
    private String message;

    public static ChatInputDto create(String inputMessage) {
        String[] arr = inputMessage.split("@");
        return new ChatInputDto(arr[0], arr[1]);
    }
}
